package com._51cto.healthy.service;

import com._51cto.healthy.base.BaseMapper;
import com._51cto.healthy.mapper.BackUpsMapper;
import com._51cto.healthy.mapper.MemberMapper;
import com._51cto.healthy.pojo.BackUps;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;

import java.util.List;

/****
 * @Author:DancingHorse
 * @Description:TMember业务层接口实现类
 * @Date 2022/4/14 0:16
 *****/
@DubboService
public class BackUpsServiceImpl implements BackUpsService {

    @Autowired
    private BackUpsMapper backUpsMapper;
    @Autowired
    private MemberMapper memberMapper;

    @Override
    public BaseMapper getDao() {
        return backUpsMapper;
    }


    @Override
    public void insertById(Integer id) {
        BackUps byId = memberMapper.queryById(id);
        backUpsMapper.insertById(byId);
        memberMapper.deleteById(id);
    }
}
